module String;

import std.string;


class String
{
	char[] _chars;

	this(char[] dstring)
	{
		_chars = dstring;
	}

	String SubString(int startIndex,int count)
	{
		char[] newChar="";;
		for(int i=startIndex;i < startIndex+count;i++)
			newChar ~=  _chars[i];
		return new String(newChar);
	}
	
	String[] Split(char[] sep)
	{
		char[][] splits = split(_chars,sep);
		
		String[] stra = new String[splits.length];

		for(int i =0; i < splits.length;i++)
		{
			stra[i] = new String(splits[i]);
		}
		return stra;
	}
}
